package cn.edu.scau.cmi.huangzhiyuan.composite.transparent;

import java.util.ArrayList;

public class Leaf extends Component {

	public Leaf(Type type, String name) {
		super(type, name);
	}

	@Override
	@Deprecated // 注释功能：提示方法已失效
	public ArrayList<Component> getChildren() {
		throw new UnsupportedOperationException();
	}

	@Override
	@Deprecated // 注释功能：提示方法已失效
	public void add(Component component) {
		throw new UnsupportedOperationException();
	}

	@Override
	@Deprecated // 注释功能：提示方法已失效
	public void remove(Component component) {
		throw new UnsupportedOperationException();
	}

}
